package com.itstudio.portal.controller;

import com.itstudio.portal.entity.Contact;
import com.itstudio.portal.entity.RestResponse;
import com.itstudio.portal.service.ContactService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/api/contact")
public class ContactController {
    @Autowired
    ContactService contactService;


    @GetMapping("/list")
    public Contact selectContacts(Contact contact){
        return contactService.AllContact(contact);
    }

}
